package states.gameplay.shapors;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;

public class Base extends Shapor {

	// energy generation per pulse
	private int _energyGeneration;
	
	private Image _render;
	
	public Base(int deployLimits, int energyGeneration, Image render, int cost, int energyGenerated) {
		super(deployLimits, cost, 0, energyGenerated, 0);
		
		setEnergyGeneration(energyGeneration);
		
		_render = render;
	}

	public int getEnergyGeneration() {
		return _energyGeneration;
	}

	public void setEnergyGeneration(int energyGeneration) {
		this._energyGeneration = energyGeneration;
	}

	
	/** RENDER **/
	@Override
	public void render(Graphics g, int x, int y) {
		
		//(render.getWidth()+cell_size)/2, startY + y * cell_size - (render.getHeight() + cell_size)/2
		_render.draw(x - (_render.getWidth())/2, y - (_render.getHeight())/2);
	}
	
}
